package com.luoqian.demo03;

/**
 * 基本操作
 */
public class Operation {
    public static void main(String[] args) throws Exception {
        Class<?> clazz = Class.forName("com.luoqian.demo03.User");

        //获取类的相关修饰符
        int modifiers = clazz.getModifiers();
        System.out.println(modifiers);

        System.out.println(clazz.getInterfaces().length);//获取类实现的所有接口
        System.out.println(clazz.getSimpleName());
        System.out.println(clazz.getClassLoader());
    }

}
